-
Notifications
You must be signed in to change notification settings - Fork 784
Update vertexai instrumentation to be in-line with the latest semantic conventions part 2 #3799
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
SGTM the hook should also not stamp a reference in this case I think. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!
instrumentation-genai/opentelemetry-instrumentation-vertexai/examples/manual/.env
Outdated
Show resolved
Hide resolved
instrumentation-genai/opentelemetry-instrumentation-vertexai/examples/zero-code/.env
Outdated
Show resolved
Hide resolved
...i/opentelemetry-instrumentation-vertexai/src/opentelemetry/instrumentation/vertexai/patch.py
Outdated
Show resolved
Hide resolved
...i/opentelemetry-instrumentation-vertexai/src/opentelemetry/instrumentation/vertexai/patch.py
Outdated
Show resolved
Hide resolved
...i/opentelemetry-instrumentation-vertexai/src/opentelemetry/instrumentation/vertexai/patch.py
Outdated
Show resolved
Hide resolved
instrumentation-genai/opentelemetry-instrumentation-vertexai/tests/conftest.py
Outdated
Show resolved
Hide resolved
...i/opentelemetry-instrumentation-vertexai/src/opentelemetry/instrumentation/vertexai/patch.py
Outdated
Show resolved
Hide resolved
I can't get docs to pass. "reference target not found: json.encoder.JSONEncoder" --> not sure how to resolve that. |
…ython-contrib into vertexai_v4
Description
Follow up to #3709. Finish updating the vertex ai instrumentation to use the semantic convention changes made in open-telemetry/semantic-conventions#2179.
Updates the instrumentation to call the completion hook as well. I think we need to update the completion hook to not upload anything when an empty list is passed to it. Right now it uploads empty list of system instructions / inputs / outputs if that's what's passed to it.
Type of change
How Has This Been Tested?
Unit tests
Does This PR Require a Core Repo Change?
Checklist:
See contributing.md for styleguide, changelog guidelines, and more.